/*
 * Copyright (c) 2020, 2023, 3044483124@qq.com All rights reserved.
 *
 */
package itcast;

import java.util.Random;

/**
 * <p>Project: JavaStudy - Ex7
 * <p>Powered by jiangbo On 2023-02-04
 * 17:27:57
 * <p>Created by IntelliJ IDEA
 *
 * @author jiangbo [3044483124@qq.com]
 * @version 1.0
 * @since 8/17
 */
public class Ex7 {
    public static void main(String[] args) {
        Random rand = new Random();
        double money = rand.nextDouble(10.000,99.999);
        System.out.printf("%.2f元%n",money);
        System.out.printf("%.3f元%n",money);
        System.out.printf("%.0f元%n",money);
        System.out.printf("%10.4f%n",money);
        System.out.printf("%10.4f%n",1f);

    }

}


